home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Tools - Objects / Installation Folder / 411 Install next >
Text File  |  1990-07-23  |  3KB  |  83 lines

  1. #    M P W  4 1 1   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install MPW 411 from the E.T.O. #1
  7. #    distribution compact disk onto a destination hard disk. 
  8. #
  9. #    Options: None
  10. #
  11. #    This script makes use of the following Shell variables:
  12. #
  13. #    {CDVolume}        - the name of the CD Distribution volume
  14. #
  15. #    {DestVolume}    - the name of the volume from which the Installer was launched
  16. #
  17. #    {MacAppFlag}    - flag indicating if MacApp is being installed (for MacApp 411)
  18. #
  19.  
  20. Set Exit 0
  21.  
  22. Set DestMPW        "{DestVolume}MPW Folder:"
  23. Set    Source411    "{CDVolume}Essentials:MPW 411:"
  24. Set    MacApp411    "{CDVolume}Essentials:MacApp Documentation:Class&Method Reference (411):"
  25.  
  26. # Copy the 411 User Startup script into the user's MPW Shell directory.
  27.     
  28. # First, disable the old UserStartup script if one exists.
  29.  
  30. if "`Exists -f "{DestMPW}UserStartup•~_Help_"`"
  31.     Rename -y "{DestMPW}UserStartup•~_Help_" "{DestMPW}UserStartup.~_Help_"
  32. End
  33.     
  34. Duplicate "{Source411}UserStartup•Help"     "{DestMPW}"
  35.  
  36. # Remove old help system files.
  37.  
  38. If "`Exists -d "{DestMPW}Help Folder:"`"
  39.     Delete  -y "{DestMPW}Help Folder:"
  40. End
  41.     
  42.  
  43.  
  44. # If requested, copy the entire 411 folder from the CD to the MPW folder
  45.  
  46. if "{411Option}" == "2"        ### copy all of the help files to the hard drive
  47.  
  48.     If Not "`Exists -d "{DestMPW}Help Files:"`"
  49.         NewFolder "{DestMPW}Help Files"
  50.     End
  51.     
  52.     Duplicate -y "{Source411}CIncludesHelp"                "{DestMPW}Help Files:CIncludesHelp"
  53.     Duplicate -y "{Source411}CIncludesHelp.index"        "{DestMPW}Help Files:CIncludesHelp.index"
  54.     Duplicate -y "{Source411}InsideMacintoshHelp"        "{DestMPW}Help Files:InsideMacintoshHelp"
  55.     Duplicate -y "{Source411}InsideMacintoshHelp.index"    "{DestMPW}Help Files:InsideMacintoshHelp.index"
  56.     Duplicate -y "{Source411}MPWHelp"                    "{DestMPW}Help Files:MPWHelp"
  57.     Duplicate -y "{Source411}MPWHelp.index"                "{DestMPW}Help Files:MPWHelp.index"
  58.     Duplicate -y "{Source411}PInterfacesHelp"            "{DestMPW}Help Files:PInterfacesHelp"
  59.     Duplicate -y "{Source411}PInterfacesHelp.index"        "{DestMPW}Help Files:PInterfacesHelp.index"
  60.     Duplicate -y "{Source411}ResourcesHelp"                "{DestMPW}Help Files:ResourcesHelp"
  61.     
  62.     If "{MacAppFlag}" != "0"    ### copy the MacApp help files as well
  63.         Duplicate -y "{MacApp411}MacApp411Help"            "{DestMPW}Help Files:MacApp411Help"
  64.         Duplicate -y "{MacApp411}MacApp411Help.index"    "{DestMPW}Help Files:MacApp411Help.index"
  65.     End
  66. End
  67.     
  68.  
  69. # Setup the 411 directory.
  70.  
  71. Set HelpDirectory "{DestMPW}Help Folder:"
  72.     
  73. If not "`Exists -d "{HelpDirectory}"`"
  74.     NewFolder "{HelpDirectory}"
  75. End
  76.  
  77. If "{411Option}" == "2"
  78.     Echo "{DestMPW}Help Files:" > "{HelpDirectory}Help_Folder"
  79. Else
  80.     Echo "{Source411}" > "{HelpDirectory}Help_Folder"
  81. End  
  82.  
  83.